package cn.zhaoyan.bean;

import java.util.Date;

public class User {
    private int id;
    private String name;
    private String password;
    private Date newtime;
    private Date updatatime;
    private String role;

    public User(int id, String name, String password, Date newtime, Date updatatime, String role) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.newtime = newtime;
        this.updatatime = updatatime;
        this.role = role;
    }

    public User(String name, String password, String role) {
        this.name = name;
        this.password = password;
        this.role = role;
    }

    public User() {

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getNewtime() {
        return newtime;
    }

    public void setNewtime(Date newtime) {
        this.newtime = newtime;
    }

    public Date getUpdatatime() {
        return updatatime;
    }

    public void setUpdatatime(Date updatatime) {
        this.updatatime = updatatime;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
    /* public User(String name, String password) {
        this.name = name;
        this.password = password;
    }

    public User() {

    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getNewtime() {
        return newtime;
    }

    public void setNewtime(Date newtime) {
        this.newtime = newtime;
    }

    public Date getUpdatatime() {
        return updatatime;
    }

    public void setUpdatatime(Date updatatime) {
        this.updatatime = updatatime;
    }

    public User(int id, String name, String password, Date newtime, Date updatatime) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.newtime = newtime;
        this.updatatime = updatatime;

    }*/
}
